package com.shiguiwu.springmybatis.mybatis.mapper;

import com.shiguiwu.springmybatis.mybatis.Book;

import java.util.List;
import java.util.Map;

/**
 * @description: bookmpper
 * @author: stone
 * @date: Created by 2021/6/21 19:23
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.mybatis
 */
public interface Book1Mapper {

    /**
     * 新增
     * @param book
     */
    void insert(Book book);


    void batchInsert(List<Book> books);


    int update(Book book);

    int batchUpdate(Book book);

    int updateByMap(Map<String, Object> map);

    int delete(Integer id);

    int deleteByMap(Map<String, Object> map);

    List<Book> list(Map<String, Object> map);

    List<Book>  getBookList();


}
